import { getAction, deleteAction, putAction, postAction, downFilePost, downFile, uploadAction } from '@/api/manage'

/**
 * 审批流程配置
 */
//流程列表
const getProList = params => getAction(`/processConfig/getProcessList`,params)
//新增流程信息
const postProAdd = params => postAction(`/processConfig/add`,params)
//删除流程配置信息
const getDareList = params => deleteAction(`/processConfig/delete/${params}`)
//获取流程配置详情
const getXingqing = params => getAction(`/processConfig/getDetail/${params}`)
//获取流程配置(编辑使用)
const getConfig = params => getAction(`/processConfig/getEditDetail/${params}`)
//获取流程配置列表
const getProcessList = params => getAction(`/processConfig/getProcessList`,params)
//停用、启用操作
const putOperate = params => putAction(`/processConfig/operate`,params)
//编辑流程配置信息
const putUpdate = params => putAction(`/processConfig/update`,params)
export {
  getProList,
  postProAdd,
  getDareList,
  getXingqing,
  getConfig,
  getProcessList,
  putOperate,
  putUpdate
}
